<template>
  <div v-if="crud.props.searchToggle">
    <el-select v-model="query.deviceStatus" clearable size="small" placeholder="设备状态" class="filter-item" style="width: 200px" @change="crud.toQuery">
      <el-option key="1" label="可租赁" value="1" />
      <el-option key="2" label="可归还" value="2" />
      <el-option key="3" label="故障中" value="3" />
    </el-select>
    <el-input v-model="query.deviceSerial" placeholder="设备编号" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.bleMac" placeholder="蓝牙mac地址" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.hospitalName" placeholder="医院名称" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.buildingName" placeholder="楼栋名称" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.floorName" placeholder="楼层名称" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.departName" placeholder="科室名称" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />

    <!--通用查询-->
    <rrOperation :crud="crud" />
  </div>
</template>

<script>
import { header } from '@crud/crud'
import rrOperation from '@crud/RR.operation'

export default {
  components: { rrOperation },
  mixins: [header()],
  props: {
    permission: {
      type: Object,
      required: true
    }
  }
}
</script>
